package com.ruoyi.system.domain;

import com.ruoyi.common.core.domain.MyBaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 好友关系对象 friend_relationship
 * 
 * @author ruoyi
 * @date 2025-09-17
 */
public class FriendRelationship extends MyBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 好友关系唯一标识 */
    private Long relationshipId;

    /** 用户ID（关联user表） */
    @Excel(name = "用户ID", readConverterExp = "关=联user表")
    private Long userId;

    /** 好友用户ID（关联user表） */
    @Excel(name = "好友用户ID", readConverterExp = "关=联user表")
    private Long friendUserId;

    /** 是否拉黑：0-未拉黑，1-已拉黑 */
    @Excel(name = "是否拉黑：0-未拉黑，1-已拉黑")
    private Long isBlacklisted;

    /** 是否删除：0-未删除，1-已删除 */
    @Excel(name = "是否删除：0-未删除，1-已删除")
    private Integer isDeleted;

    /** 乐观锁版本号 */
    @Excel(name = "乐观锁版本号")
    private Long version;

    /** 创建人（通常为user_id） */
    @Excel(name = "创建人", readConverterExp = "通=常为user_id")
    private String creator;

    public void setRelationshipId(Long relationshipId) 
    {
        this.relationshipId = relationshipId;
    }

    public Long getRelationshipId() 
    {
        return relationshipId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setFriendUserId(Long friendUserId) 
    {
        this.friendUserId = friendUserId;
    }

    public Long getFriendUserId() 
    {
        return friendUserId;
    }

    public void setIsBlacklisted(Long isBlacklisted) 
    {
        this.isBlacklisted = isBlacklisted;
    }

    public Long getIsBlacklisted() 
    {
        return isBlacklisted;
    }

    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }

    public void setCreator(String creator)
    {
        this.creator = creator;
    }

    public String getCreator()
    {
        return creator;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("relationshipId", getRelationshipId())
            .append("userId", getUserId())
            .append("friendUserId", getFriendUserId())
            .append("isBlacklisted", getIsBlacklisted())
            .append("isDeleted", getIsDeleted())
            .append("version", getVersion())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("creator", getCreator())
            .toString();
    }
}
